home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Screen Parts / WindowScreenPart.h < prev    next >
Text File  |  1997-06-28  |  502b  |  29 lines

  1. // WindowScreenPart.h
  2.  
  3. #ifndef WindowScreenPart_h
  4. #define WindowScreenPart_h
  5.  
  6. #ifndef ScreenPart_h
  7. #include "ScreenPart.h"
  8. #endif
  9.  
  10. class AbstractWindow;
  11.  
  12. class WindowScreenPart: public ScreenPart
  13.   {
  14.     typedef void (AbstractWindow::*Clicker)( const MouseDownEvent& );
  15.     
  16.     private:
  17.         WindowPtr window;
  18.         AbstractWindow& abstraction;
  19.         Clicker clicker;
  20.         
  21.     public:
  22.         WindowScreenPart( WindowPtr, Clicker ); 
  23.  
  24.         virtual bool Active() const;
  25.         virtual void Click( const MouseDownEvent& ) const;
  26.   };
  27.  
  28. #endif
  29.